import { Get, Controller, Session } from '@nestjs/common';
import { CodeService } from './code.service';

@Controller('code')
export class CodeController {
  constructor(private readonly codeService: CodeService) {}

  @Get()
  getCode(@Session() session) {
    return this.codeService.getCode(session);
  }
}
